/*
 * To change this template), choose Tools | Templates
 * and open the template in the editor.
 */
package com.pclong.config.entity;

/**
 *
 * @author Administrator
 */
public enum UserPermissions {

    /// 没权限
    /// No Permissions.
    None(0),
    /// 管理用户
    /// The permission to manage user.

    ManageUser(0x01),
    /// 管理顶部链接
    /// The permission to manage top links.

    ManageTopLinks(0x02),
    /// 管理简报
    /// The permission to manage bulletins.

    ManageBulletin(0x04),
    /// 管理游戏区
    /// The permission to manage game zones.

    ManageServer(0x08),
    /// 管理混服中转
    /// The permission to manage mix servers.

    ManageMixServer(0x10),
    /// 管理功能开关
    /// The permission to manage game zones.

    ManageFunctionSwitch(0x20),
    /// 管理额外配置
    /// The permission to manage extra configuration.

    ManageExtraConfig(0x40),
    /// 配置备份还原
    /// The permission to backup and restore configuration.

    ConfigBackupRestore(0x80),
    /// 管理系统日志
    /// The permission to manage system logs.

    ManageSystemLog(0x100),
    /// 显示游戏区高级信息
    /// The permission to manage advanced information of game servers.

    ShowAdvancedServerInfo(0x200),
    /// 管理检测

    ManagerMonitorService(0x400);
           
            /// 所有权限
            /// All permissions.
           
//            All(UserPermissions.ManageUser
//            | UserPermissions.ManageTopLinks
//            | UserPermissions.ManageBulletin
//            | UserPermissions.ManageServer
//            | UserPermissions.ManageMixServer
//            | UserPermissions.ManageFunctionSwitch
//            | UserPermissions.ManageExtraConfig
//            | UserPermissions.ConfigBackupRestore
//            | UserPermissions.ManageSystemLog
//            | UserPermissions.ShowAdvancedServerInfo
//            | UserPermissions.ManagerMonitorService);
    private final int value;

    UserPermissions(int value) {
        this.value = value;
    }

    public int value() {
        return value;
    }
}
